package com.zhiyi.coco.service.impl;

import com.zhiyi.coco.dao.SysLoginInfoMapper;
import com.zhiyi.coco.entity.SysLoginInfo;
import com.zhiyi.coco.service.SysLoginInfoService;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
@Log4j
public class SysLoginInfoServiceImpl implements SysLoginInfoService {
    @Autowired
    private SysLoginInfoMapper loginInfoMapper;
    @Override
    public Integer updateByPrimaryKeySelective(SysLoginInfo loginInfo) {
        Integer i=loginInfoMapper.updateByPrimaryKeySelective(loginInfo);
        return i;
    }

    @Override
    public Integer insertSelective(SysLoginInfo loginInfo) {
        Integer i=loginInfoMapper.insertSelective(loginInfo);
        return i;
    }

    @Override
    public SysLoginInfo selectByname(String name) {
        return loginInfoMapper.selectByname(name);
    }
}
